package com.clstu.override_;

public class Student extends Person{
    private String ID;
    private int score;

    public Student(String name, int age, String ID, int score) {
        super(name, age);
        this.ID = ID;
        this.score = score;
    }

    public String say(){//重写父类的方法
        return "我是学生："+getName()+"，今年"+getAge()+"岁，学号："+ID+" 成绩："+score;
    }
}
